class SimulationDataForeignKeys < ActiveRecord::Migration
  def self.up
  	execute "ALTER TABLE simulation_data ADD CONSTRAINT fk_simulation_data_simulation_body FOREIGN KEY
  					(simulation_body_id) REFERENCES simulation_bodies(id) ON DELETE CASCADE"
  end

  def self.down
  	execute "ALTER TABLE simulation_data DROP CONSTRAINT fk_simulation_data_simulation_body"
  end
end
